package ocbn.remotelab.GUI;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;


/**
* This screen will display detailed information about a specific event.
* @author c9wuke
*/
 public class MSDetailScreen extends MainScreen {

     private long eventID;


     /**
      * Default constructor
      */
    public MSDetailScreen() {
        super();

    }

    /**
     * Sets the event ID
     * @param ID the ID of the MS event that the screen is displaying
     */
    public void setEventID(long ID){
        eventID = ID;
        LabelField title = new LabelField("Event "
        + eventID, LabelField.USE_ALL_WIDTH);
        setTitle(title);
    }

    /**
     * Sets the detail message to be displayed
     * @param s the string containing the detail message.
     */
    public void setDetailMessage(String s){
       add(new LabelField(s));
    }
    

    /**
     * Overiding the parent method to avoid save Prompt().
     * @return always returns true
     */
    protected boolean onSavePrompt(){
        return true;
    }
    

}
